@if (question && (question.text || question.text === '')) {
    <div>
        <!-- Content is outside the core-loading to let the script calculate drag items position -->
        <core-loading [hideUntil]="question.loaded" />

        @if (!question.readOnly) {
            <ion-card class="core-info-card" [hidden]="!question.loaded">
                <ion-item>
                    <ion-icon name="fas-circle-info" slot="start" aria-hidden="true" />
                    <ion-label>{{ 'core.question.howtodraganddrop' | translate }}</ion-label>
                </ion-item>
            </ion-card>
        }

        <div class="fake-ion-item ion-text-wrap" [hidden]="!question.loaded">
            <div class="addon-qtype-ddwtos-container">
                <core-format-text [component]="component" [componentId]="componentId" [text]="question.text" [contextLevel]="contextLevel"
                    [contextInstanceId]="contextInstanceId" [courseId]="courseId" #questiontext (afterRender)="textRendered()" />

                @if (question.answers) {
                    <core-format-text [component]="component" [componentId]="componentId" [text]="question.answers"
                        [contextLevel]="contextLevel" [contextInstanceId]="contextInstanceId" [courseId]="courseId"
                        (filterContentRenderingComplete)="answersRendered()" />
                }
            </div>
        </div>
    </div>
}
